/**
 * @ClassName LC389
 * @Author ykx
 * @Date 2024/3/25 18:59
 * @Version 1.0
 */
public class LC389 {
    public char findTheDifference(String s, String t) {
        int sum = 0;
        for (int i = 0; i < s.length(); i++) {
            sum += s.charAt(i);
        }
        for (int i = 0; i < t.length(); i++) {
            sum -= t.charAt(i);
        }

        return (char) -sum;
    }
}
